﻿using System;

namespace WeiSha.Core
{
	// Token: 0x02000021 RID: 33
	public class Platform
	{
		// Token: 0x1700005C RID: 92
		// (get) Token: 0x06000104 RID: 260 RVA: 0x00007FD4 File Offset: 0x000061D4
		public static string Name
		{
			get
			{
				return Platform.Attr("name");
			}
		}

		// Token: 0x1700005D RID: 93
		// (get) Token: 0x06000105 RID: 261 RVA: 0x00007FF0 File Offset: 0x000061F0
		public static string Version
		{
			get
			{
				bool flag = string.IsNullOrWhiteSpace(Platform._version);
				if (flag)
				{
					Platform._version = Platform.Attr("version");
				}
				return Platform._version;
			}
		}

		// Token: 0x1700005E RID: 94
		// (get) Token: 0x06000106 RID: 262 RVA: 0x00008024 File Offset: 0x00006224
		public static License License
		{
			get
			{
				return License.Value;
			}
		}

		// Token: 0x06000107 RID: 263 RVA: 0x0000803C File Offset: 0x0000623C
		public static string Attr(string key)
		{
			bool flag = string.IsNullOrWhiteSpace(key);
			string text;
			if (flag)
			{
				text = string.Empty;
			}
			else
			{
				PlatformInfoHandler.SiteInfoHandlerParaNode siteInfoHandlerParaNode = PlatformInfoHandler.Node(Platform._nodeName);
				text = ((siteInfoHandlerParaNode != null) ? siteInfoHandlerParaNode.Attribute(key) : string.Empty);
			}
			return text;
		}

		// Token: 0x04000051 RID: 81
		private static string _nodeName = "Platform";

		// Token: 0x04000052 RID: 82
		private static string _version = string.Empty;
	}
}
